package com.rboat.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rboat.common.annotation.Excel;
import com.rboat.common.core.domain.BaseEntity;

/**
 * 考生答题对象 exam_test_user_answer
 * 
 * @author rboat
 * @date 2019-09-02
 */
public class ExamTestUserAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 考卷ID:t_exam_test_paper:id */
    @Excel(name = "考卷ID:t_exam_test_paper:id")
    private String testPaperId;

    /** 章节id */
    @Excel(name = "章节id")
    private String chapterId;

    /** 试题id */
    @Excel(name = "试题id")
    private String questionId;

    /** 考生ID */
    @Excel(name = "考生ID")
    private String userId;

    /** 考生答案 */
    @Excel(name = "考生答案")
    private String answer;

    /** 1:正确 2：错误 */
    @Excel(name = "1:正确 2：错误")
    private String result;

    /** 分数 */
    @Excel(name = "分数")
    private Long score;

    /** 0:未批改  1：已批改 */
    @Excel(name = "0:未批改  1：已批改")
    private String state;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTestPaperId(String testPaperId) 
    {
        this.testPaperId = testPaperId;
    }

    public String getTestPaperId() 
    {
        return testPaperId;
    }
    public void setChapterId(String chapterId) 
    {
        this.chapterId = chapterId;
    }

    public String getChapterId() 
    {
        return chapterId;
    }
    public void setQuestionId(String questionId) 
    {
        this.questionId = questionId;
    }

    public String getQuestionId() 
    {
        return questionId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("testPaperId", getTestPaperId())
            .append("chapterId", getChapterId())
            .append("questionId", getQuestionId())
            .append("userId", getUserId())
            .append("answer", getAnswer())
            .append("result", getResult())
            .append("score", getScore())
            .append("state", getState())
            .append("sort", getSort())
            .toString();
    }
}
